<!-- pages/ButtonsPage.vue -->
<template>
  <ComponentPage
    title="卡片组件库"
    :componentGlob="cardComponents"
    :pageSize="8"
  />
</template>

<script setup>
import ComponentPage from './ComponentPage.vue'

// ✅ 动态导入目标目录下所有 .vue 文件
const cardComponents = import.meta.glob('../components/cards/*.vue')
</script>